/*很多下拉数据源获取到的格式是列入：｛Key: '01', Value: '中医（白发、脱发）门
诊'｝，而vueSelect 组件需要｛label: '中医（白发、脱发）门诊', value: '01'｝格式，所以需要转换*/
export const selectZhuanMa = (keyList) => {
    let labelList = [];
    for(let i = 0; i < keyList.length; i++){
        labelList.push({label: keyList[i].Value, value: keyList[i].Key});
    }
    return labelList;
}

export const selectZhuanMa2 = (keyList) => {
    let labelList = [];
    for(let i = 0; i < keyList.length; i++){
        labelList.push({label: keyList[i].mc, value: keyList[i].bh,labeldlbh: keyList[i].dlbh,labelzlbh: keyList[i].zlbh});
    }
    return labelList;
}